import { IsArray, IsEmail, IsNotEmpty, IsString } from 'class-validator';

class CreateUserDto {
  @IsString()
  @IsNotEmpty()
  name: string; // 用户名称

  @IsEmail()
  @IsNotEmpty()
  email: string; // 邮箱

  @IsArray()
  @IsNotEmpty()
  roleKeys: Array<string>; //角色
}

export default CreateUserDto;
